package com.liuyang.concurrency.chapter2;

public class TicketWindowRunnable implements Runnable{
    private static int index = 1;

    private final int MAX = 50;

    public void run() {
        while(index <=MAX){
            System.out.println("柜台："+Thread.currentThread().getName()+"开始叫号："+(index++));
        }
    }
}
